C; this routine basically sets the current task's state to TASK_KILLABLE and calls schedule_timeout , which makes the calling task sleep for timeout number of jiffies.
该例程主要用于将当前任务的状态设置为TASK_KILLABLE并调用schedule _ timeout,它用于让调用任务睡眠timeout个jiffies。
This is especially important when asynchronous invocation is used where the calling task has to look for the output of the called task appearing at a particular location to continue further.
当使用了异步调用,而调用的任务需要查找所调用任务在特定位置生成的输出才能够继续后续操作时,这种方法是特别重要的。
What happens if the process that is calling the task might require a response within a certain period?
如果调用该任务的流程可能要求在某个时段内响应,结果会怎么样呢?
应用推荐